package com.sntk.registermanager.staff.infrastructure.commit.impl;

import com.alibaba.fastjson.JSONObject;
import com.sntk.registermanager.common.infrastructure.resp.ResponseData;
import com.sntk.registermanager.staff.infrastructure.commit.UserCommit;
import org.springframework.stereotype.Component;

/**
 * @ClassName: UserCommitHystrix
 * @author: wgchao
 * @createTime: 2020/11/27 8:40 AM
 * @Description: TODO
 */
@Component
public class UserCommitHystrix implements UserCommit {
    @Override
    public ResponseData addUser(JSONObject jsonObject, String operatorInfo) {
        return ResponseData.error("服务不可用");
    }

    @Override
    public ResponseData<String> searchUser(String uname) {
        return ResponseData.error("服务不可用");
    }
}
